package com.study.boot.event;

import lombok.Data;
import org.springframework.context.ApplicationEvent;

/**
 * @author fangdengfu
 * @date 2020/7/4 9:57
 */
@Data
public class AnotherEvent extends ApplicationEvent {

    private String msg;

    private static final String TYPE = "anotherEvent";

    public AnotherEvent(Object source) {
        super(source);
    }

    public AnotherEvent(String msg) {
        super(TYPE);
        this.msg = msg;
    }
}
